import 'package:get/get.dart';
import 'package:klfz_flutter/http/http_utils.dart';
import 'package:klfz_flutter/model/chapter_result.dart';
import 'package:klfz_flutter/model/novel_result.dart';

class BookLogic extends GetxController {

  List<Novel> data = [];
  
  void loadData() {
    data = [];
    HttpUtils.get("/novel/novel/list").then((value) {
      NovelResult novle =  NovelResult.fromJson(value);
      data = novle.result!.records!;
      update();
    });
  }
}
